﻿<%@ Page Language="VB" AutoEventWireup="false" CodeFile="mtProductslPopup.aspx.vb" Inherits="mtProductslPopup" %>

<%@ Register Assembly="ISNet.WebUI.WebCombo" Namespace="ISNet.WebUI.WebCombo" TagPrefix="ISWebCombo" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="css/style.css" rel="stylesheet" />
    <script type="text/ecmascript">
        function ClosePop() {
            window.parent.TINY.box.hide();
        }
    </script>
    <style type="text/css">
        .auto-style1 {
            width: 117px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <div style="margin-left: 10px;">

            <div style="text-align: left; float: left; width: 97%; height: 30px; border: solid; border-color: gray; border-width: 1px; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; box-shadow: 5px 5px 5px #808080; padding: 5px 5px 5px 5px;">
                <table width="100%" border="0">
                    <tr>
                        <td width="50%">
                            <asp:Label ID="L_ID" runat="server" Visible="false"></asp:Label>
                            <asp:Label ID="L_CommentDetail" runat="server"></asp:Label>
                            <asp:Label ID="L_CmmtYear" runat="server" Visible="false"></asp:Label>
                            <asp:Label ID="L_ProductType" runat="server" Visible="false"></asp:Label>
                        </td>
                        <td width="50%" align="right">
                            <asp:ImageButton ID="AddBtn" runat="server" ImageUrl="Icons/save.jpg" />&nbsp;&nbsp;
                        <asp:ImageButton ID="CancelBtn" runat="server" ImageUrl="Icons/cancel.png" OnClientClick="ClosePop()" /></td>
                    </tr>
                </table>
            </div>

            <div style="text-align: left; float: left; width: 97%; margin-top: 10px; border: solid; border-color: gray; border-width: 1px; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; box-shadow: 5px 5px 5px #808080; padding: 5px 5px 5px 5px;">
                <table>
                    <tr>
                        <td class="auto-style1">
                            <asp:Label ID="Label1" runat="server" Text="รหัสผลิตภัณฑ์" CssClass="label"></asp:Label></td>
                        <td style="width: 5px;">&nbsp;</td>
                        <td>
                            <asp:TextBox ID="IDTxt" runat="server" Width="100px" MaxLength="8" Enabled="false"></asp:TextBox></td>
                        <td style="width: 5px;">&nbsp;</td>
                    </tr>
                    <tr>
                        <td class="auto-style1">
                            <asp:Label ID="Label2" runat="server" Text="ปีงบประมาณ"></asp:Label></td>
                        <td>&nbsp;</td>
                        <td>
                            <asp:TextBox ID="PlanYearsTxt" runat="server" Width="40px" Style="text-align: center;" MaxLength="4" Enabled="false"></asp:TextBox>
                        </td>
                        <td>&nbsp;</td>
                    </tr>
                    <tr>
                        <td class="auto-style1">
                            <asp:Label ID="Label3" runat="server" Text="ชื่อผลิตภัณฑ์"></asp:Label></td>
                        <td>&nbsp;</td>
                        <td colspan="2">
                            <asp:TextBox ID="DescripTxt" runat="server" Width="300px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="auto-style1">
                            <asp:Label ID="Label4" runat="server" Text="อัตราค่าตอบแทนสินเชื่อ"></asp:Label></td>
                        <td>&nbsp;</td>
                        <td>
                            <asp:TextBox ID="CompensateRateTxt" runat="server" Width="100px" Style="text-align: right;"></asp:TextBox>
                            &nbsp;
                            <asp:Label ID="Label17" runat="server" Text=" %"></asp:Label>
                        </td>
                        <td>&nbsp;</td>
                    </tr>
                    <tr>
                        <td class="auto-style1">
                            <asp:Label ID="Label16" runat="server" Text="วิธีคำนวณค่าตอบแทน"></asp:Label>
                        </td>
                        <td>&nbsp;</td>
                        <td align="center">
                            <ISWebCombo:WebCombo ID="CaLcuTypeGroupCombo" Width="150px" runat="server" UseDefaultStyle="True" Height="20px" DataSourceID="CaLcuTypeObjectDataSource" DataTextField="Description" DataValueField="Value">
                                <LayoutSettings AlwaysShowAllRowsOnDropdown="true" AlwaysShowHelpButton="false">
                                </LayoutSettings>
                            </ISWebCombo:WebCombo>
                            <asp:ObjectDataSource ID="CaLcuTypeObjectDataSource" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetDataByCALCULATION_TYPE" TypeName="MasterDataSetTableAdapters.AppConfigsTableAdapter">
                                <DeleteParameters>
                                    <asp:Parameter Name="Original_Id" Type="Int32" />
                                </DeleteParameters>

                            </asp:ObjectDataSource>
                        </td>
                        <td>&nbsp;</td>
                    </tr>
                    <tr>
                        <td class="auto-style1" style="vertical-align: text-top;">
                            <asp:Label ID="Label5" runat="server" Text="สามารถใช้งานได้ในฟอร์ม"></asp:Label>
                        </td>
                        <td>&nbsp;</td>
                        <td colspan="2">
                            <asp:CheckBoxList ID="FormCheckBoxList" runat="server" RepeatColumns="2" Width="460px">
                                <asp:ListItem Value="F06">Form F06 ผลิตภัณฑ์สินเชื่อค่าตอบแทน</asp:ListItem>
                                <asp:ListItem Value="F07">Form F07 ผลิตภัณฑ์สินเชื่อค่าเบี้ยประกันสินเชื่อ</asp:ListItem>
                                <asp:ListItem Value="F08">Form F08 ผลิตภัณฑ์เงินฝากตรวจสุขภาพสงเคราห์ชีวิต</asp:ListItem>
                                <asp:ListItem Value="F09">Form F09 ผลิตภัณฑ์เงินฝากค่าธรรมเนียมบัตรสงเคราะห์ชีวิต</asp:ListItem>
                                <asp:ListItem Value="F10">Form F10 ผลิตภัณฑ์เงินฝากค่าตอบแทนเงินฝาก</asp:ListItem>
                                <asp:ListItem Value="P01">Form P01 เป้าหมายเงินฝาก</asp:ListItem>
                                <asp:ListItem Value="P02">Form P02 เป้าหมายสินเชื่อ</asp:ListItem>
                                <asp:ListItem Value="P03">Form P03 เป้าหมาย NPL</asp:ListItem>
                                <asp:ListItem Value="P04">Form P04 เป้าหมายค่าธรรมเนียม</asp:ListItem>
                            </asp:CheckBoxList><br />
                        </td>
                    </tr>
                    <tr>
                        <td class="auto-style1" style="vertical-align: text-top;">
                            <asp:Label ID="Label6" runat="server" Text="แต่ละฟอร์มให้บันทึกรายการลง Commitment Item"></asp:Label>
                        </td>
                        <td>&nbsp;</td>
                        <td colspan="2">
                            <table>
                                <tr>
                                    <td>Commitment Item ที่จะบันทึกค่าในฟอร์มค่าตอบแทนสินเชื่อ</td>
                                    <td style="width: 5px;">&nbsp;</td>
                                    <td>
                                        <ISWebCombo:WebCombo ID="CommtItemComboF06" runat="server" UseDefaultStyle="True" DataTextField="CmmtCode" DataValueField="CmmtCode" Height="20px" Width="70px" OnInitializeDataSource="CommtItemComboF06_InitializeDataSource" AdditionalSearchFields="CmmtCode">
                                            <LayoutSettings AlwaysShowAllRowsOnDropdown="true" AlwaysShowHelpButton="false" EntryMode="AutoComplete" ComboMode="MultipleColumns">
                                                <ClientSideEvents />
                                            </LayoutSettings>
                                            <Columns>
                                                <ISWebCombo:WebComboColumn BaseFieldName="CmmtCode" Name="CmmtCode" HeaderText="รหัส commitment" Width="65px" />
                                                <ISWebCombo:WebComboColumn BaseFieldName="Description" Name="Description" HeaderText="ชื่อ commitment" Width="200px" />
                                            </Columns>
                                        </ISWebCombo:WebCombo>
                                    </td>
                                    <td style="width: 5px;">&nbsp;</td>

                                </tr>
                                <tr>
                                    <td>Commitment Item ที่จะบันทึกค่าในฟอร์มค่าเบี้ยประกันภัยสินเชื่อ</td>
                                    <td style="width: 5px;">&nbsp;</td>
                                    <td>
                                        <ISWebCombo:WebCombo ID="CommtItemComboF07" runat="server" UseDefaultStyle="True" DataTextField="CmmtCode" DataValueField="CmmtCode" Height="20px" Width="70px" OnInitializeDataSource="CommtItemComboF07_InitializeDataSource" AdditionalSearchFields="CmmtCode">
                                            <LayoutSettings AlwaysShowAllRowsOnDropdown="true" AlwaysShowHelpButton="false" EntryMode="AutoComplete" ComboMode="MultipleColumns">
                                                <ClientSideEvents />
                                            </LayoutSettings>
                                            <Columns>
                                                <ISWebCombo:WebComboColumn BaseFieldName="CmmtCode" Name="CmmtCode" HeaderText="รหัส commitment" Width="65px" />
                                                <ISWebCombo:WebComboColumn BaseFieldName="Description" Name="Description" HeaderText="ชื่อ commitment" Width="200px" />
                                            </Columns>
                                        </ISWebCombo:WebCombo>
                                    </td>
                                    <td style="width: 5px;">&nbsp;</td>

                                </tr>
                                <tr>
                                    <td>Commitment Item ที่จะบันทึกค่าในฟอร์มค่าตอบแทนสงเคราะห์ชีวิต</td>
                                    <td style="width: 5px;">&nbsp;</td>
                                    <td>
                                        <ISWebCombo:WebCombo ID="CommtItemComboF08" runat="server" UseDefaultStyle="True" DataTextField="CmmtCode" DataValueField="CmmtCode" Height="20px" Width="70px" OnInitializeDataSource="CommtItemComboF08_InitializeDataSource" AdditionalSearchFields="CmmtCode">
                                            <LayoutSettings AlwaysShowAllRowsOnDropdown="true" AlwaysShowHelpButton="false" EntryMode="AutoComplete" ComboMode="MultipleColumns">
                                                <ClientSideEvents />
                                            </LayoutSettings>
                                            <Columns>
                                                <ISWebCombo:WebComboColumn BaseFieldName="CmmtCode" Name="CmmtCode" HeaderText="รหัส commitment" Width="65px" />
                                                <ISWebCombo:WebComboColumn BaseFieldName="Description" Name="Description" HeaderText="ชื่อ commitment" Width="200px" />
                                            </Columns>
                                        </ISWebCombo:WebCombo>
                                    </td>
                                    <td style="width: 5px;">&nbsp;</td>

                                </tr>
                                <tr>
                                    <td>Commitment Item ที่จะบันทึกค่าในฟอร์มค่าธรรมเนียมบัตรสงเคราะห์ชีวิต</td>
                                    <td style="width: 5px;">&nbsp;</td>
                                    <td>
                                        <ISWebCombo:WebCombo ID="CommtItemComboF09" runat="server" UseDefaultStyle="True" DataTextField="CmmtCode" DataValueField="CmmtCode" Height="20px" Width="70px" OnInitializeDataSource="CommtItemComboF09_InitializeDataSource" AdditionalSearchFields="CmmtCode">
                                            <LayoutSettings AlwaysShowAllRowsOnDropdown="true" AlwaysShowHelpButton="false" EntryMode="AutoComplete" ComboMode="MultipleColumns">
                                                <ClientSideEvents />
                                            </LayoutSettings>
                                            <Columns>
                                                <ISWebCombo:WebComboColumn BaseFieldName="CmmtCode" Name="CmmtCode" HeaderText="รหัส commitment" Width="65px" />
                                                <ISWebCombo:WebComboColumn BaseFieldName="Description" Name="Description" HeaderText="ชื่อ commitment" Width="200px" />
                                            </Columns>
                                        </ISWebCombo:WebCombo>
                                    </td>
                                    <td style="width: 5px;">&nbsp;</td>

                                </tr>
                                <tr>
                                    <td>Commitment Item ที่จะบันทึกค่าในฟอร์มค่าตอบแทนเงินฝาก GP</td>
                                    <td style="width: 5px;">&nbsp;</td>
                                    <td>
                                        <ISWebCombo:WebCombo ID="CommtItemComboF10" runat="server" UseDefaultStyle="True" DataTextField="CmmtCode" DataValueField="CmmtCode" Height="20px" Width="70px" OnInitializeDataSource="CommtItemComboF10_InitializeDataSource" AdditionalSearchFields="CmmtCode">
                                            <LayoutSettings AlwaysShowAllRowsOnDropdown="true" AlwaysShowHelpButton="false" EntryMode="AutoComplete" ComboMode="MultipleColumns">
                                                <ClientSideEvents />
                                            </LayoutSettings>
                                            <Columns>
                                                <ISWebCombo:WebComboColumn BaseFieldName="CmmtCode" Name="CmmtCode" HeaderText="รหัส commitment" Width="65px" />
                                                <ISWebCombo:WebComboColumn BaseFieldName="Description" Name="Description" HeaderText="ชื่อ commitment" Width="200px" />
                                            </Columns>
                                        </ISWebCombo:WebCombo>
                                    </td>
                                    <td style="width: 5px;">&nbsp;</td>
                                    <td></td>
                                    <td style="width: 5px;">&nbsp;</td>
                                    <td></td>
                                </tr>
                                <tr style="visibility:collapse;">
                                    <td>Cmmt_Code P01</td>
                                    <td style="width: 5px;">&nbsp;</td>
                                    <td>
                                        <ISWebCombo:WebCombo ID="CommtItemComboP01" runat="server" UseDefaultStyle="True" DataTextField="CmmtCode" DataValueField="CmmtCode" Height="20px" Width="70px" OnInitializeDataSource="CommtItemComboP01_InitializeDataSource" AdditionalSearchFields="CmmtCode">
                                            <LayoutSettings AlwaysShowAllRowsOnDropdown="true" AlwaysShowHelpButton="false" EntryMode="AutoComplete" ComboMode="MultipleColumns">
                                                <ClientSideEvents />
                                            </LayoutSettings>
                                            <Columns>
                                                <ISWebCombo:WebComboColumn BaseFieldName="CmmtCode" Name="CmmtCode" HeaderText="รหัส commitment" Width="65px" />
                                                <ISWebCombo:WebComboColumn BaseFieldName="Description" Name="Description" HeaderText="ชื่อ commitment" Width="200px" />
                                            </Columns>
                                        </ISWebCombo:WebCombo>
                                    </td>
                                </tr>
                                <tr style="visibility:collapse;">
                                    <td>Cmmt_Code P02</td>
                                    <td style="width: 5px;">&nbsp;</td>
                                    <td>
                                        <ISWebCombo:WebCombo ID="CommtItemComboP02" runat="server" UseDefaultStyle="True" DataTextField="CmmtCode" DataValueField="CmmtCode" Height="20px" Width="70px" OnInitializeDataSource="CommtItemComboP02_InitializeDataSource" AdditionalSearchFields="CmmtCode">
                                            <LayoutSettings AlwaysShowAllRowsOnDropdown="true" AlwaysShowHelpButton="false" EntryMode="AutoComplete" ComboMode="MultipleColumns">
                                                <ClientSideEvents />
                                            </LayoutSettings>
                                            <Columns>
                                                <ISWebCombo:WebComboColumn BaseFieldName="CmmtCode" Name="CmmtCode" HeaderText="รหัส commitment" Width="65px" />
                                                <ISWebCombo:WebComboColumn BaseFieldName="Description" Name="Description" HeaderText="ชื่อ commitment" Width="200px" />
                                            </Columns>
                                        </ISWebCombo:WebCombo>
                                    </td>
                                </tr>
                                <tr style="visibility:collapse;">
                                    <td>Cmmt_Code P03</td>
                                    <td style="width: 5px;">&nbsp;</td>
                                    <td>
                                        <ISWebCombo:WebCombo ID="CommtItemComboP03" runat="server" UseDefaultStyle="True" DataTextField="CmmtCode" DataValueField="CmmtCode" Height="20px" Width="70px" OnInitializeDataSource="CommtItemComboP03_InitializeDataSource" AdditionalSearchFields="CmmtCode">
                                            <LayoutSettings AlwaysShowAllRowsOnDropdown="true" AlwaysShowHelpButton="false" EntryMode="AutoComplete" ComboMode="MultipleColumns">
                                                <ClientSideEvents />
                                            </LayoutSettings>
                                            <Columns>
                                                <ISWebCombo:WebComboColumn BaseFieldName="CmmtCode" Name="CmmtCode" HeaderText="รหัส commitment" Width="65px" />
                                                <ISWebCombo:WebComboColumn BaseFieldName="Description" Name="Description" HeaderText="ชื่อ commitment" Width="200px" />
                                            </Columns>
                                        </ISWebCombo:WebCombo>
                                    </td>
                                </tr>
                                <tr style="visibility:collapse;">
                                    <td>Cmmt_Code P04</td>
                                    <td style="width: 5px;">&nbsp;</td>
                                    <td>
                                        <ISWebCombo:WebCombo ID="CommtItemComboP04" runat="server" UseDefaultStyle="True" DataTextField="CmmtCode" DataValueField="CmmtCode" Height="20px" Width="70px" OnInitializeDataSource="CommtItemComboP04_InitializeDataSource" AdditionalSearchFields="CmmtCode">
                                            <LayoutSettings AlwaysShowAllRowsOnDropdown="true" AlwaysShowHelpButton="false" EntryMode="AutoComplete" ComboMode="MultipleColumns">
                                                <ClientSideEvents />
                                            </LayoutSettings>
                                            <Columns>
                                                <ISWebCombo:WebComboColumn BaseFieldName="CmmtCode" Name="CmmtCode" HeaderText="รหัส commitment" Width="65px" />
                                                <ISWebCombo:WebComboColumn BaseFieldName="Description" Name="Description" HeaderText="ชื่อ commitment" Width="200px" />
                                            </Columns>
                                        </ISWebCombo:WebCombo>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td class="auto-style1"></td>
                        <td>&nbsp;</td>
                        <td colspan="2">&nbsp;</td>
                    </tr>


                </table>
            </div>
        </div>

    </form>
    <%=AlertText%>
    <%=ScriptText %>
    <script>
        var combo1 = document.getElementById("CaLcuTypeGroupCombo");
        combo1.style.height = "20px";
    </script>
    <style>
        .WC4-DD-N {
            height: 0px;
        }

        .WC4-DD-A {
            height: 0px;
        }
    </style>
</body>

</html>
